<style>
.titlebar {
padding: 0;
margin: 0;
border: 0;
border-radius: 3px 3px 0 0;
-moz-border-radius: 3px 3px 0 0;
-webkit-border-radius: 3px 3px 0 0;
background-color: #333;
color: #CCC;
font-size: 13px;
}

.wb_show {
padding-bottom: 6px;
font-size: 18px;
line-height: 22px;
}
.services_modal .wb_show {
margin: 0 18px 0 15px;
}

li{
border-bottom:1px dashed #C7C7C7;

}
span{
/*color: #999;*/
font-size: 10px;
}
li.wu{
font-size: 16px;
padding-top: 8px;
padding-bottom: 8px;
color: #000;
}

.wblist{
/*height:300px;*/
overflow-y:scroll;
}
</style>
<div class='titlebar'>
<?php echo $wbItem;
?>
</div>
<ul class='wb_show'>
<li class='wu'>

<?php 
echo'微博昵称：';
?>
<a href=<?php echo 'http://weibo.com/'.$wbuser['id']?> class="view-link"><?php echo $wbuser['name']?></a><br>

<?php 
echo'粉丝：'.$wbuser['followers_count'].'人';
?>

<?php 
echo'关注：'.$wbuser['friends_count'].'人';


if(count($wbshow)==0){
	$disNxt=true;
}else{
	$disNxt=false;
}

if($page==0){
	$page=1;
}
if($page==1){
	$disPre=true;
}else{
	$disPre=false;
}
?>
<?php echo CHtml::button('下一页',array('class'=>'button','disabled'=>$disNxt,'puid'=>$_REQUEST['puid'],'pid'=>$_REQUEST['pid'],'aKey'=>$_REQUEST['aKey'], 'sKey'=>$_REQUEST['sKey'],'page'=>$page+1));?>
<?php echo CHtml::button('上一页',array('class'=>'button','disabled'=>$disPre,'puid'=>$_REQUEST['puid'],'pid'=>$_REQUEST['pid'],'aKey'=>$_REQUEST['aKey'], 'sKey'=>$_REQUEST['sKey'],'page'=>$page-1));?>

</li>
<div class='wblist'>
<?php
foreach($wbshow as $wb){
?>
<span>
<?php echo substr($wb['created_at'],4,6);
?>
</span>
<li class='wb_content'>
<?php echo $wb['text'];
?>
</li>

<?php    }?>
</div>
</ul>

<script type="text/javascript">
$(document).ready(function(){
  $(".button").click(function(){
  	alert($(this).attr('page'));
  	$(".core").load(JWeiboWidgetOption.showUrl,{page:$(this).attr('page'),puid:$(this).attr('puid'),pid:$(this).attr('pid'),aKey:$(this).attr('aKey'),sKey:$(this).attr('sKey')});
  });
//  $(this).resize(function(){
//  	alert($('.wu').css('height'));
//  	$('.wblist).attr('height','80%');
//  });
	
		var len=this.core.css('height').substring(0,this.core.css('height').indexOf('px'));
	$('.wblist').css('height',len-100).css('overflow-y','scroll');
});

</script>